package com.back.demo.mapper;

import com.back.demo.mapper.myDO.judgeDO.SingleStudentAllGradesDO;
import com.back.demo.mapper.myDO.studentDO.StudentPositionDO;
import com.back.demo.mapper.myDO.studentDO.StudentPracticeDO;
import com.back.demo.mapper.myDO.studentDO.StudentResearchDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Mapper
@Repository
public interface JudgeMapper {
    ArrayList<SingleStudentAllGradesDO> selectAllStudentsSingleGrade();

    SingleStudentAllGradesDO selectSingleStudentAllGrades(String studentId);

    String selectSingleStudentSummaryByUserId(Integer userId);

    List<StudentResearchDO> selectSingleStudentResearchByUserId(Integer userId);

    List<StudentPositionDO> selectSingleStudentPositionByUserId(Integer userId);

    List<StudentPracticeDO>selectSingleStudentPracticeByUserId(Integer userId);

    void rateSummary(@Param("studentId") String studentId, @Param("grade") double grade);

    void rateResearch(@Param("studentId") String studentId, @Param("grade") double grade);

    void ratePosition(@Param("studentId") String studentId, @Param("grade") double grade);

    void ratePractice(@Param("studentId") String studentId, @Param("grade") double grade);

}
